package basisDemo;

public class AbstactDemo implements Itemp {
    public static void main(String[] args) {
        AbstactDemo demo = new AbstactDemo();
        demo.doSomething();
    }

    @Override
    public int getnum() {
        return 0;
    }
}

abstract class BaseTmp {
    abstract void draw();
}

interface Itemp {
    /**
     * 接口的方法默认就是public
     * @return number
     */
    int getnum();

    int a = 0;

    default void doSomething() {
        System.out.println("do something" + a);
    }
}